package icu.lookyousmileface.controller;

import icu.lookyousmileface.service.SyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author starrysky
 * @title: SyncController
 * @projectName springboot-sync_task
 * @description: controller layer
 * @date 2021/2/1101:11
 */
@Controller
public class SyncController {

    @Autowired
    public SyncService syncService;

    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        syncService.hello();
        return "OK";
    }
}
